Ad Widget

Collapse

compile the -libxml2 and libcurl for vmware monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chvgms
    Junior Member
    • May 2020
    • 12

    #1

    compile the -libxml2 and libcurl for vmware monitoring

    Hi,

    how do i compile the -libxml2 and libcurl for vmware monitoring? i have very limited knowledge in linux, hence this question. PFB output and guide me.

    For virtual machine monitoring to work, Zabbix should be compiled with the --with-libxml2 and --with-libcurl compilation options.



    [root@appliance /]# ldd /usr/sbin/zabbix_server | egrep 'libxml2|libcurl'

    libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f13d1aa8000)
    libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f13d03a3000)
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    For someone with limited knowledge in Linux, the easiest route is generally to use the pre-built packages, assuming there are some for your platform.

    What Linux distribution and version are you using?

    Comment

    • chvgms
      Junior Member
      • May 2020
      • 12

      #3
      i am doing a poc of zabbix 5.0 appliance and want tot monitor ESXi. as per the instructions "Zabbix should be compiled with the --with-libxml2 and --with-libcurl compilation options". seems this need to run from the zabbix installation folder or location. Not sure how to do, any help in this regard will be helpful.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        If you are using an official appliance, the option to monitor VMware should have been compiled with it enabled. Make sure that the value of StartVMwareCollectors in the settings file is 1 or more.

        Comment

        • chvgms
          Junior Member
          • May 2020
          • 12

          #5
          thx for the detals. i have edited the zabbix-server.conf file and uncommented StartVMwareCollectors, restarted the service and could see all guest VM's running on ESXi.

          Comment

          • towerx
            Junior Member
            • Jan 2021
            • 14

            #6
            Originally posted by chvgms
            thx for the detals. i have edited the zabbix-server.conf file and uncommented StartVMwareCollectors, restarted the service and could see all guest VM's running on ESXi.
            hi may i ask how you did it. i am struggling for days thanks in advance

            Comment


            • Jinaraju15
              Jinaraju15 commented
              Editing a comment
              Try adding the below in /etc/zabbix/zabbix_server.conf (replace with lib actual paths)

              LoadModulePath=/usr/lib64/libxml2.so.2
              LoadModulePath=/usr/lib64/libcurl.so.4
          • rohithmurthy
            Junior Member
            • Jan 2020
            • 2

            #7
            Hi Geeks,

            I have RHEL 8 having libcurl and libxml2 , i am struggling for few days let me know where i am missing it.

            ldd /usr/sbin/zabbix_server | egrep 'libxml2|libcurl'
            libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f2cb5db6000)
            libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f2cb52b1000)

            StartVMwareCollectors = 1

            passed credentials for service a/c and URL as well.

            I am getting error :

            Received response has no valid XML data.

            Please let me know what did i missed in vmware configuration.

            Thanks
            Rohith

            Comment

            Working...